<?php
	session_start();
	$fechagenedocta=date("Y-m-d");
	header("Cache-Control: no-store, no-cache, must-revalidate");
if ( (session_is_registered('sesId') || session_is_registered('cvecliente')) ){
		require('templates/func_cliente_edocta.php'); 
		//require('templates/func_ok.php'); 
		?>

		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />	

		<script type="text/javascript" src="javascripts/prototype.js"> </script> 
		<script type="text/javascript" src="javascripts/effects.js"> </script>
		<script type="text/javascript" src="javascripts/window.js"> </script>
		<script type="text/javascript" src="javascripts/window_effects.js"> </script>
		<script type="text/javascript" src="javascripts/debug.js"> </script>
		<link href="themes/default.css" rel="stylesheet" type="text/css" >	 </link>
		<link href="themes/alphacube.css" rel="stylesheet" type="text/css" >	 </link>

			<LINK REL="stylesheet" TYPE="text/css" HREF="css/style.css">
			<script src="./templates/edocta_morsa.js?ms=<?php echo time() ?>"></script>
		<title>GRUPO MORSA</title>
		</head>
		<body onload="CargaEdoCuenta();">
		<script>
			var index= 0;
			var contentWin = null;
			var win;
			
			
		</script>
				<div id="footer"></div>

                <?php //echo Estado_de_Cuenta(); ?>
                <center><span id='retEdoCta'></span></center>
		<form name='formavista' action='' method='post' >
		<table width='100%' align='center'>
		<tr>
			<td width='100%'>
				<!--<input type='button' name='bpedido' value=' Confirmar ' onclick='fnconfirmagrabapedido();'>
				<input type='button' name='bpedido' value=' Cancelar '  onclick='fncerrarvista();'>-->
			</td>
		</tr>
		</table>
		<input type="hidden" id="fechagenped" name="fechagenped" value="<?php echo $fechagenedocta; ?>">
		<input type="hidden" id="saldoselfac" name="saldoselfac" value="0">
		</form>
				


		</body>
		</html>

		<?php
			

}else{
	header("LOCATION:index.php");
}
?>
